<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_resource_clicks".
 *
 * @property string $id
 * @property string $resource_id
 * @property int $clicks
 * @property int $del_flag
 */
class TResourceClicks extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_resource_clicks';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['clicks', 'del_flag'], 'integer'],
            [['id', 'resource_id'], 'string', 'max' => 36],
            [['id'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'resource_id' => 'Resource ID',
            'clicks' => 'Clicks',
            'del_flag' => 'Del Flag',
        ];
    }
}
